.fileTree{
  position: relative;
  .el-tree {
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    user-select: none;

    ::v-deep .el-tree-node{
      &:focus > .el-tree-node__content {
        .custom-tree-node{
          .size{
            display: none;
          }
          .node-button {
            display: inline-block;
          }
        }
      }
      & > .el-tree-node__children {
        overflow: visible;
      }
    }

    ::v-deep .el-tree-node__content {
      &:hover{
        .tree-info .custom-tree-node {
          .size{
            display: none;
          }
          .node-button {
            display: inline-block;
          }
        }
      }

      .el-tree-node__expand-icon {
        display: none;
      }
    }

    ::v-deep .el-tree-node__children{

      .el-tree-node{
        position: relative;
        // 竖线
        &::before {
          content: "";
          height: calc(100% - 2px);
          width: 1px;
          position: absolute;
          left: 8px;
          top: -4px;
          border-width: 1px;
          border-left: 1px dashed #ccc;
        }
        // 横线
        &::after {
          content: "";
          width: 12px;
          height: 20px;
          position: absolute;
          left: 9px;
          top: 12px;
          border-width: 1px;
          border-top: 1px dashed #ccc;
        }
        &:last-child{
          &::before {
            height: 17px;
          }
        }
      }
    }

    .tree-info {
      display: flex;
      width: 100%;
      height: 100%;
      padding: 2px 0;
      .spanButton{
        margin: 0 2px 0 0;
        padding: 0;
        width: 21px;
        height: 21px;
        display: inline-block;
        border: 0 none;
        cursor: pointer;
        outline: none;
        background-color: transparent;
        background-repeat: no-repeat;
        background-attachment: scroll;
        &.ico_loading {
          background: url(~@/views/Canvas/RunContainer/img/loading.gif) no-repeat;
          background-position: 0 0;
          background-size: 18px 18px;
        }
        &.ico_open {
          background: url(~@/views/Canvas/RunContainer/img/folder_open.svg) no-repeat;
          background-position: 2px 1px;
          background-size: 18px 18px;
        }
        &.ico_close {
          background: url(~@/views/Canvas/RunContainer/img/folder_close.svg) no-repeat;
          background-position: 2px 1px;
          background-size: 18px 18px;
        }
        &.ico_file {
          background: url(~@/views/Canvas/RunContainer/img/file.svg) no-repeat;
          background-position: 2px 1px;
          background-size: 18px 18px;
        }
      }

      .loading-icon {

      }

      .icon {
        display: inline-block;
      }

      .svg-icon {
        margin: 0 5px;
      }

      .seizeSeat {
        width: 23px;
        display: inline-block;
      }

      .custom-tree-node {
        position: sticky;
        right: 2px;
        background-color: #fff;
        display: flex;
        align-items: center;
        .node-button{
          display: none;
        }
      }

      .text {
        line-height: 21px;
        flex: 1;
        padding-right: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
      }

      .size {
        font-size: 12px;
        padding-left: 8px;
        &.sizeRight{
          margin-right: 10px;
        }
      }

      .node-button {
        border: 0;
        border-radius: 0;
        background-color: #ffffff00;
        padding: 4px 10px;
      }

      .node-button:hover {
        background-color: #ffffff;
      }

    }
  }
}
